<?php $name = system_controller_front::getInstance()->getRequest()->getActionName(); ?>
<div class="body tabs">
	<form action="<?php echo $this->url('picture/special/list');?>" method="get">
	<?php echo $this->form()->hidden('order', $this->order);?>
	<?php echo $this->form()->hidden('sort', $this->sort);?>
	<ul class="list">
		<li<?php if($name=='list') echo ' class="current"'; ?>><a href="<?php echo $this->url('picture/special/list');?>"><?php echo $this->language('ALL SPECIAL LIST');?><?php if($name=='list') echo ' »'; ?></a></li>
		<?php if($this->row && $this->row->getId()) { ?>
		<li<?php if($name=='edit') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('picture/special/edit', array('id' => $this->row->getId()));?>"><?php echo $this->language('EDIT SPECIAL');?><?php if($name=='edit') echo ' »'; ?></a>
		</li>
		<li<?php if($name=='photo') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('picture/special/photo', array('id' => $this->row->getId()));?>"><?php echo $this->language('PHOTO LIST');?><?php if($name=='photo') echo ' »'; ?></a>
		</li>
		<li>
			<a href="<?php echo $this->url('picture/photo/batch', array('special_id' => $this->row->getId()));?>" class="batch"><?php echo $this->language('UPLOAD');?></a>
		</li>
		<?php if($name=='delete') { ?>
		<li class="current">
			<a href="<?php echo $this->url('picture/special/delete', array('id' => $this->row->getId()));?>"><?php echo $this->language('DELETE');?> »</a>
		</li>
		<?php } ?>
		<?php } else { ?>
		<li<?php if($name=='addnew') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('picture/special/addnew', array(), array('category_id' => intval($this->category_id)));?>"><?php echo $this->language('CREATE A NEW SPECIAL');?><?php if($name=='addnew') echo ' »'; ?></a>
		</li>
		<?php } ?>
		<li class="rs">
			<span><?php echo $this->partial('picture/_inc/categorySelect.phtml', array('name' => 'category_id', 'selectedId' => intval($this->category_id)));?></span>
			<span><?php echo $this->render('include/searchInput.phtml');?></span>
			<span><button type="submit" value="Search" class="small">Search</button></span>
		</li>
	</ul>
	<div class="clearfix"></div>
	</form>
</div>
